package com.youtellv1.dto;

import lombok.Data;

@Data
public class YSalDTO {
    private Integer sid;
    private Float base_sal;
    private Float subsidy;
    private Float class_size;
    private Float health;
    private Float year;
    private Float edu;
    private Float merits_sal1;
    private Float merits_sal2;
    private Float merits_sal3;
    private Float merits_sal4;
    private Float merits_sal5;
    private Integer full_time;
    private Float safe;
    private Float class_hour;
    private Float newstu;
    private Float for_leave;
    private Float other;
    private Float class_out;
    private Float add_class;
    private Integer class_num;
    private Integer class_reg;
    private Integer sign_num;
    private String month;
    private Integer tid;

    private String tname;
    private String tsex;
    private Integer tage;
    private String tphone;

    public Float getTotalSalary() {
        return safe + base_sal + subsidy + class_size + health + year + edu +
                merits_sal1 + merits_sal2 + merits_sal3 + merits_sal4 + merits_sal5 +
                full_time + class_hour + newstu + class_out + add_class
                - for_leave - other;
    }

}
